package com.xfdmao.fcat.gate.controller;

import com.alibaba.fastjson.JSONObject;
import com.xfdmao.fcat.api.vo.authority.SessionInfo;
import com.xfdmao.fcat.common.util.JsonUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by xiangfei on 2017/10/16.
 */
@RefreshScope
@RestController
public class PublicController {
    private Logger logger = LoggerFactory.getLogger(PublicController.class);

    @Value("${author}")
    private String author;

    @Autowired
    protected HttpServletRequest request;

    @RequestMapping("/")
    public String login(){
        return "developed by " + author;
    }
}
